import Mock from 'mockjs'
// Mock.Random.extend({
//     phone: function () {
//         var phonePrefixs = ['132', '135', '189'] // 自己写前缀哈
//         return this.pick(phonePrefixs) + Mock.mock(/\d{8}/) //Number()
//     }
// })
// const userName = /^[A-Za-z]{3,10}$/
// const telPattern = /^1[3456789]\d{9}$/ // 中国大陆地区的手机号码正则

// const userList = Mock.mock({
//     'items|300': [{
//         id: '@id',
//         // userName: '@name',
//         userName: userName,
//         'name': "@cname",
//         cname: "@cname",
//         'number|+1': 1,
//         'id|+1': 1,
//         'division|1-3': 1,
//         "roleId|1-3": 1,
//         'tel|+1': telPattern,
//         createTime: "2022-12-12 12:00:00",
//         updateTime: "2022-12-12 12:00:00",
//         "status|1-3": 1,
//         "onlineDuration|1-100": 1,
//     }]
// })
// export default userList.items
const userList = [
    {
        userId: 1,
        id: 1,
        userName: "admin",
        name: "曹嘉雄",
        number: 1,
        division: 1,
        roleId: 1,
        tel: 15996862477,
        createTime: "2022-12-12 12:00:00",
        updateTime: "2022-12-12 12:00:00",
        status: 1,
        onlineDuration: 1000,
        password: '123456'
    },

    {
        userId: 2,
        id: 2,
        userName: "test",
        name: "土豆",
        number: 2,
        division: 2,
        roleId: 3,
        tel: 15996862477,
        createTime: "2022-12-12 12:00:00",
        updateTime: "2022-12-12 12:00:00",
        status: 1,
        onlineDuration: 1000,
        password: '123456'
    },

]
export default userList